home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
yam_i_dodatki
/
yammailcheck
/
mailcheck
< prev
next >
Wrap
AmigaDOS Script File
|
1997-03-22
|
1KB
|
75 lines
.key STEP/S
.bra {
.ket }
; $VER: MailCheck 1.2 (16.03.97)
;
; Automated e-mail checking with Miami and YAM
;
; ©1997 Robert Wilson
Failat 25
LAB Start
If $MCMailRun EQ "1"
SetEnv MCMailRun 0
Skip End
EndIf
SetEnv MCMailRun 1
SetEnv MCOkay 0
If "{Step}" NOT EQ "STEP"
Skip Check
Else
If $MCStep EQ "1"
SetEnv MCStep 0
SetEnv MCMailRun 0
Skip End
EndIf
LAB Check
; **************************
CheckModem $MCSerial 0 >NIL: ; <--- Do you need to change this?
; **************************
If $RC EQ 0
SetEnv ModemStatus 0
Else
SetEnv ModemStatus 1
EndIf
If Not Exists s:MailCheck.log
echo "" >s:MailCheck.log
echo MailCheck by Robert Wilson >>s:MailCheck.log
echo -------------------------- >>s:MailCheck.log
echo "" >>s:MailCheck.log
EndIf
date >Env:MCTempDate
GetEnv MCTempDate >> s:MailCheck.log
rx Rexx:MailCheck.rexx >> s:MailCheck.log
If $MCOkay EQ "1"
If $MCLastRun EQ "1"
OkayDokey SC=Workbench WI="LastCheck V1.0" CAN ACT CX QUIET QUITAFTER
Wait 1
Unsetenv Answer
EndIf
SetEnv MCLastRun 0
Copy Env:MCDate EnvArc: QUIET CLONE
Copy Env:MCMail EnvArc: QUIET CLONE
EndIf
SetEnv MCMailRun 0
LAB End
Quit